package com.yc.yyds.biz;

import com.yc.yyds.dao.QueryMoviesShowListDao;

import java.util.*;

public class ShowMovieBiz {
    QueryMoviesShowListDao dao = new QueryMoviesShowListDao();

    public List<Map<String,Object>> query() throws BizException {
        try {
           return dao.showMovies();
        }catch (Exception e){
            throw new BizException("加载失败!");
        }
    }
    public List<Map<String, Object>> movieDate() throws BizException {
        try {
            List<Map<String, Object>> list = dao.queryTime();
            return list;
        }catch (Exception e){
            throw new BizException("系统繁忙,请稍后");
        }
    }

    public static void main(String[] args) {
        ShowMovieBiz biz =new ShowMovieBiz();
        try {
            biz.movieDate();
        } catch (BizException e) {
            e.printStackTrace();
        }
    }
}
